import 'package:flutter/material.dart';

class GradientLine extends StatelessWidget {
  final double width;
  final double height;
  final List<Color> colorList;

  GradientLine({this.width = 200.0, this.height = 1.0,required this.colorList});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,
      height: height,
      decoration: BoxDecoration(
        gradient: LinearGradient(
          colors:colorList,
        ),
      ),
    );
  }
}